#include <stdio.h>
char get_first(void);
int main(void)
{
    char ch;

    ch = get_first();
    printf("%c", ch);

    return 0;
}

char get_first(void)
{
    int ch;
    int first;

    while ((ch = getchar()) != EOF)
    {
        if (ch == ' ')
            continue;
        first = ch;
        while (getchar() != '\n')
            continue;
    }
    
    return first;
}